<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>姓名案例_插值语法</title>
		<script src="js/vue.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<div id="root">
			姓:<input type="text" v-model="xing" /><br /><br />
			名:<input type="text" v-model="ming" /><br /><br />
			全称:<span>{{xing}}-{{ming}}</span>
		</div>
		<script type="text/javascript">
			let root = new Vue({
				el:"#root",
				data:{
					xing:'张',
					ming:'三',
				},
			})
		</script>
	</body>
</html>
